package com.rgz.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Policy {
    private Integer policyid;

    private String policyno;

    private String identity;

    private Integer insuranceid;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date insure;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date expire;

    private Integer accidentno;

    private Integer status;

    private String reserved;

    private String reserved1;
    
    @Override
	public String toString() {
		return "Policy [policyid=" + policyid + ", policyno=" + policyno + ", identity=" + identity + ", insuranceid="
				+ insuranceid + ", insure=" + insure + ", expire=" + expire + ", accidentno=" + accidentno + ", status="
				+ status + ", reserved=" + reserved + ", reserved1=" + reserved1 + ", insurancetype=" + insurancetype
				+ "]";
	}

	private Insurance insurancetype;
    
    


    
	public Insurance getInsurancetype() {
		return insurancetype;
	}

	public void setInsurancetype(Insurance insurancetype) {
		this.insurancetype = insurancetype;
	}

	public Integer getPolicyid() {
        return policyid;
    }

    public void setPolicyid(Integer policyid) {
        this.policyid = policyid;
    }

    public String getPolicyno() {
        return policyno;
    }

    public void setPolicyno(String policyno) {
        this.policyno = policyno == null ? null : policyno.trim();
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity == null ? null : identity.trim();
    }

    public Integer getInsuranceid() {
        return insuranceid;
    }

    public void setInsuranceid(Integer insuranceid) {
        this.insuranceid = insuranceid;
    }

    public Date getInsure() {
        return insure;
    }

    public void setInsure(Date insure) {
        this.insure = insure;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public Integer getAccidentno() {
        return accidentno;
    }

    public void setAccidentno(Integer accidentno) {
        this.accidentno = accidentno;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReserved() {
        return reserved;
    }

    public void setReserved(String reserved) {
        this.reserved = reserved == null ? null : reserved.trim();
    }

    public String getReserved1() {
        return reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1 == null ? null : reserved1.trim();
    }
}